package com.mybatis.utils;

import lombok.Data;

/**
 * Created by 2756779610@qq.com on 2021/12/13 11:09
 * CHANGE ACTIVITY:
 * <p>
 * Reason      Version    Date        User        Description
 * ------------ ---------- ----------- ----------- -------------------
 * <p>
 * END CHANGE ACTIVITY
 */
@Data
public class ResultUtils {

    private Integer code;

    private String message;

    private Object data;

     public static ResultUtils ok(Object data){
         ResultUtils resultUtils=new ResultUtils();
         resultUtils.setCode(200);
         resultUtils.setMessage("成功");
         resultUtils.setData(data);
       return  resultUtils;

     }
}
